package fristphase.day03;

import java.util.Arrays;

public class 函数test01 {
    public static void main(String[] args) {
        int[] array = {2,48,34,54,13,567,23,43};
        System.out.println(myPlus(2,3));
        sayHello();
        int[] receiveArray = mySort(array);

        for (int i = 0; i < receiveArray.length; i++) {
            System.out.println(receiveArray[i]);
        }
//        System.out.println(receiveArray);
//        System.out.println(array);
    }

    public static int myPlus(int num1, int num2){
        return num1 + num2;
    }

    public static void sayHello() {
        System.out.println("你好");
        System.out.println("再见");
    }

    public static int[] mySort(int[] a) {
        Arrays.sort(a);
        return a;
    }
}
